<div id="control">
	<a href="{Url::anchor("admin/{Input::get(1)}/add")}" class="item small text"><img src="/styles/admin/gfx/icons/small/add.png" alt="Thêm"/><span>Thêm</span></a>
</div>

<div class="section">
	<div class="box">
		<div class="title">
			Danh sách
			<span class="hide"></span>
		</div>
		<div class="content">
			<table cellspacing="0" cellpadding="0" border="0" class="all"> 
				<thead> 
					<tr>
						<th>ID</th>
                        <th>Tên</th>
						<th>Sort</th>
						<th>Control</th>
					</tr>
				</thead>
				<tbody>
                    {foreach $categories as $row}
					<tr>
                        <td>{$row.id}</td>
						<td>{$row.name}</td>
						<td>{$row.sort}</td>	
						<td>
                            <a href="{URL::anchor("admin/{Input::get(1)}/update/{$row.id}")}" class="item small"><img src="/styles/admin/gfx/icons/small/edit.png" alt="Sửa" /></a>
                            <a href="{URL::anchor("admin/{Input::get(1)}/delete/{$row.id}")}" class="item small"><img src="/styles/admin/gfx/icons/small/trash.png" alt="Xóa" /></a>
                        </td>
					</tr>
                    {/foreach}
				</tbody>
			</table>
		</div>
	</div>
</div>